import { newMaterial } from "~~/server/service/material.service"

export default defineEventHandler(async (event) => {
  const doc = await readBody(event)
  await newMaterial(doc)
})
